package com.common.springbootcommonmessage.mapper;

import com.common.springbootcommonmessage.model.CommonAutopartOrders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CommonAutopartOrdersMapper {
    int deleteByPrimaryKey(Integer orderID);

    int insert(CommonAutopartOrders record);

    int insertSelective(CommonAutopartOrders record);

    CommonAutopartOrders selectByPrimaryKey(Integer orderID);

    int updateByPrimaryKeySelective(CommonAutopartOrders record);

    int updateByPrimaryKey(CommonAutopartOrders record);

    Integer updateHasUnRead(@Param("orderId") Integer orderId,@Param("hasUnRead") Boolean hasUnRead);
}